home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 1
/
Merciful - Disc 1.iso
/
software
/
h
/
hot_link_edition
/
hotlinkedition1.dms
/
hotlinkedition1.adf
/
Install-HotLinks
< prev
next >
Wrap
Text File
|
1992-02-10
|
4KB
|
146 lines
; HotLinks Hard Drive Installation Script
; set up a error cleanup routine
(onerror
(makeassign "HLInstPgm" (safe))
)
;just started
(complete 0)
; just in case the installation was restarted, nuke the assign
(makeassign "HLInstPgm" (safe))
;get the directory to copy hotlinks to
(set hl_dest
(tackon
(askdir
(prompt "In which disk or drawer should HotLinks be installed?")
(help @askdir-help)
(default @default-dest)
)
"HotLinks"
)
)
; now lock on to volume 'HotLinks_Editions_Boot'
(askdisk
(prompt "Please insert the disk labeled \"HotLinks_Editions_Boot\" into any drive")
(help "The HotLinks program and related files will be copied from the "
"\"HotLinks_Editions_Boot\" disk onto your system.")
(dest "HotLinks_Editions_Boot")
(newname "HLInstPgm")
)
(complete 20)
; at this point we have a valid destination, so we tell installer where
; the application will end up so the exit page will be correct -- also,
; the installation log file (if any) will be copied to the destination
(set @default-dest hl_dest)
;copy all the program files from source to dest
(copyfiles
(prompt "This will create a new drawer called \"HotLinks\" and "
"will copy the following files and drawers."
)
(source "HLInstPgm:HotLinks")
(dest hl_dest)
(all)
(infos)
(confirm)
(help @copyfiles-help)
)
(complete 40)
;copy the hotlinks.library to LIBS:
(copyfiles
(prompt "This will copy the hotlinks.library to LIBS:" )
(source "HLInstPgm:libs/hotlinks.library")
(dest "LIBS:")
(confirm)
(help @copyfiles-help)
)
(complete 60)
;fix the icon for the newly created drawer to not be "snapshot"
(tooltype
(dest hl_dest)
(noposition)
)
;add the assign and path commands, if the user wants them
(set hl_assign ("c:assign HOTLINKS: \"%s\"\n" (tackon hl_dest "Editions")))
(set hl_path ("c:path \"%s\" ADD\n" hl_dest))
(startup
"HotLinks"
(prompt "Two commands need to be added to your s:user-startup file "
"in order to use HotLinks.\n"
"The commands to add are:\n\n"
hl_assign
hl_path
"\nDo you want these to be added?" )
(help @startup-help)
(command hl_assign)
(command hl_path)
)
(complete 80)
;execute the assign and path command
(run hl_assign)
;get the users registration number
(set hl_sernum
(asknumber
(prompt "The HotLinks program needs to be serialized before it can be properly used.\n"
"Please enter the registration number printed on your disk.")
(help @asknumber-help)
(default 1)
)
)
(complete 90)
;serialize the hotlinks resident code
;build the command
(set hl_fixcom
("\"%s\" %ld 1"
(tackon
("%s" hl_dest)
"hlser"
)
hl_sernum
)
)
;and ask the user if it should be run
(run
hl_fixcom
(prompt "Your copy of HotLinks needs to be serialized.\n"
"The following command will accomplish this:\n\n"
hl_fixcom
)
(confirm)
(help "HotLinks needs to be serialized before it can be properly used. "
"To do this we have provide a program (hlser) that takes as its "
"argument a serial number. This number will be written into the "
"hl.pwd (hotlinks password) file. Each time HotLinks is run the "
"serial number wil be read and used to create a unique file.\n"
"Each copy of HotLinks should have a different serial number or "
"conflicts will result when transfering files between different "
"HotLink systems.\n"
"This command need only be run once."
)
)
;done with the install
(complete 100)
; cleanup
(makeassign "HLInstPgm" (safe))
;and get out
(exit)